/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.groupb.circus.impl_interfaces;

import com.groupb.circus.interfaces.Thumbnail;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.swing.ImageIcon;

/**
 *
 * @author a
 */
public class Content implements Serializable,com.groupb.circus.interfaces.Content{


    String id;
    String title;
    String author;
    Thumbnail Simage = new ThumbnailImp();
    String path;
    String user;
    List<String> authorNews;
    List<String> paragraph;
    String flag;

    
    /*
     * Constructor imagenes
     */
    public Content(String flag,String id, String title, String author, String path, String user)throws FileNotFoundException, InterruptedException, IOException{
        
        this.id = id;
        this.title =title;
        this.author = author;
        Simage.setImageSmall(path);
        this.path=path;
        this.user=user;
        this.flag=flag;
        
        
    }
    
    /*
     * Constructor news
     */
    public Content(String flag,String id, String title, List<String> authorNews, String user, List<String> paragraph)throws FileNotFoundException, InterruptedException, IOException{
        
        this.id = id;
        this.title =title;
        this.authorNews=authorNews;
        this.user=user;
        this.paragraph=paragraph;
        this.flag=flag;
        
        
    }
    
    
    
    @Override
    public String getFlag() {
        return flag;
    }
    

    @Override
    public String getId() {
        return id;
    }

    

    @Override
    public String getAuthor() {
        return author;
    }

    

    @Override
    public String getTitle() {
        return title;
    }

    

    @Override
    public ImageIcon getImages() {
        return Simage.getImageSmall();
    }
    
    @Override
   public String getPath(){
        return path;
    }

    @Override
    public String getUser(){
        return user;
    }

    @Override
    public List<String> getAuthorNews(){
        return authorNews;
    }
    
    @Override
    public List<String> getParagraph(){
        return paragraph;
    }
    
    
}
